<%@ page import="java.util.Objects" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Set" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/4/6
  Time: 10:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录成功</title>
</head>
<body>
<%--    登录--%>
<%--    <%--%>
<%--        Map<String,String> accout = new HashMap<String,String>();--%>
<%--        accout.put("aaaaaa","aaaaaa");--%>
<%--        accout.put("aaaaaaa","aaaaaaa");--%>
<%--        accout.put("aaaaaaaa","aaaaaaaa");--%>
<%--        String username = request.getParameter("username");--%>
<%--        String password = request.getParameter("password");--%>
<%--        if (password.equals(accout.get(username))){--%>
<%--        }else{--%>
<%--            request.setAttribute("mesg","账号或密码不正确");--%>
<%--            request.getRequestDispatcher("login.jsp").forward(request,response);--%>
<%--        }--%>
<%--    %>--%>

<%--    注册--%>
    <%
        Map<String, String[]> parameterMap = request.getParameterMap();
        Set<String> keys = parameterMap.keySet();
        for (String key : keys) {
            out.write(key + ":");
            String[] values = parameterMap.get(key);
            for (int i = 0; i < values.length; i++) {
                out.write(values[i] + " ");
            }
            out.write("<hr/>");
        }
    %>
    <h2>登录注册成功</h2>
</body>
</html>
